extends PlayerState

func process(delta):
	player.facing_direction()
	
	if player.is_on_floor():
		state_machine.transition_to(state_machine.STATE.IDLE)


func physics_process(delta: float):
	player.physics_process(delta)


func jump_double_timeout():
	state_machine.transition_to(state_machine.STATE.JUMP_DOWN)


func enter(msg: Dictionary = {}):
	player.speed = player.run_speed
	player.is_jump_double = true
	animation.play(state_machine.STATE.JUMP_DOUBLE)
